<div class="accordination detail-study">
<h2 class="thead">学 歴 (Quá trình học tập)</h2>
<table class="pdetail">
	<tbody>
		<tr>
			<td width="140" class="yel">
				卒業年間<br/>Năm TN</td>
			<td>
				学　校　名<br/>Tên trường</td>
			<td width="140" class="yel">
				得 意 な 科 目<br/>Môn học giỏi nhất</td>
			<td width="200">
				<?php echo isset($translatedModel)?Html::encode($translatedModel->academy->best_subject):'';?></td>
		</tr>
		<tr>
			<td colspan="2" valign="top" style="padding: 0px;">
				<table class="pdetail sub">
					<tbody>
						<?php
							$classYear = 'yel';
							$classSchool = 'no-br';
							$acdemy = $model->academy->studyingProcesses;
							$countAcdemy = count($acdemy);						
							foreach($acdemy as $index => $item ) :
							
							if(isset($translatedModel))
							{
								$itemT = $translatedModel->academy->studyingProcesses[$index];
							}
							if($index == $countAcdemy - 1 && $index > 2)
							{
								$classYear .= ' no-bb';
								$classSchool .= ' no-bb'; 
							}										
							?>
							
						<tr>
							<td width="140" class="<?php echo $classYear; ?>">
								<?php echo Html::encode($item->beginning_year .' ~ '. $item->ending_year); ?>
							</td>
							<td class="<?php echo $classSchool; ?>">
								<?php echo Html::encode($item->school_name) .'<br>'. ((isset($translatedModel) && Html::encode($itemT->school_name) != '') ? Html::encode($itemT->school_name): '<br>'); ?>
							</td>
						</tr>
							<?php
							endforeach;
						?>						
					</tbody>
				</table>
			</td>
			<td colspan="2" valign="top" style="padding: 0px;">
				<table class="pdetail sub">
					<tbody>
						<tr>
							<td width="140" class="yel">専 門 専 攻<br/>Chuyên môn</td>
							<td class="no-br"><?php echo isset($translatedModel)?Html::encode($translatedModel->academy->major):'';?></td>
						</tr>
						<tr>
							<td width="140" class="yel">資 格・免 許<br/>Chứng chỉ/Bằng cấp</td>
							<td class="no-br"><?php echo isset($translatedModel)?Html::encode($translatedModel->academy->certificate):'';?></td>
						</tr>
						<tr>
							<td width="140" class="yel<?php echo $countAcdemy < 3 ? ' no-bb':''; ?>">外 国 語<br/>Ngoại ngữ</td>
							<td class="no-br<?php echo $countAcdemy < 3 ? ' no-bb':''; ?>"><?php echo isset($translatedModel)?Html::encode($translatedModel->academy->language):'';?></td>
						</tr>
					</tbody>
				</table>
			</td>
		</tr>
	</tbody>
</table>
</div>